package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 流程评估配置业务对象 lc_evaluation_setting
 *
 * @author ruoyi
 * @date 2023-06-29
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LcEvaluationSettingBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long evaluationId;

    /**
     * 业务id
     */
    @NotNull(message = "业务id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long businessId;

    /**
     * 标题

     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String context;

    /**
     * 占比
     */
    @NotNull(message = "占比不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer proportion;

    /**
     * 状态（0正常 1停用）
     */
    @NotBlank(message = "状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
